package com.koron.css2.clientCenter.Enum;

public enum PushDataEnum {
	COMPACTIVITY(1, "compActivity"),
	
	CONFIGINFO(2, "configInfo"),

	INFOPUB(3, "infoPub"),

	AUTOREPLY(4, "autoReply");

	private final Integer type;

	private final String dataService;

	private PushDataEnum(final Integer type, final String dataService) {
		this.type = type;
		this.dataService = dataService;
	}

	public static String getDataService(Integer type) {
		PushDataEnum[] pushDataEnums = values();
		for (PushDataEnum pushDataEnum : pushDataEnums) {
			if (pushDataEnum.type().equals(type)) {
				return pushDataEnum.dataService();
			}
		}
		return null;
	}

	public Integer type() {
		return this.type;
	}

	public String dataService() {
		return this.dataService;
	}
}
